package com.sky.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.sky.common.EnumDeserializer;
import com.sky.common.EnumSerializer;
import com.sky.enumeration.EmployeeStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EmployeeEntity {
    private Long id;

    private String name;

    private String username;

    private String password;

    private String phone;

    private String sex; // 1 男 0 女

    private String idNumber;

    @JSONField(serializeUsing = EnumSerializer.class, deserializeUsing = EnumDeserializer.class)
    private EmployeeStatusEnum status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Long createUser;

    private Long updateUser;

}
